package com.endpoint.common.utils;

import java.util.Random;

/**
 * @Project: endpoint
 * @Name: SMSCodeUtils
 * @Author: Jack_Li
 * @Date: 2024/7/5 18:45
 */
public class SMSCodeUtils {
    public static String randomCode() {
        StringBuilder str = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 4; i++) {
            str.append(random.nextInt(10));
        }
        return str.toString();
    }

}
